package org.adream.account.util;

/**
 * 常量类
 * @author sl
 *
 */
public class Constant {
	
	public final static int ZERO = 0;
	
	public final static int ONE = 1;
	
	public final static int TWO = 2;
	
	public final static int THREE = 3;
	
	public final static int FOUR = 4;
	
	public final static int FIVE = 5;
	
	public final static int SIX = 6;
	
	public final static int SEVEN = 7;
	
	public final static int EIGHT = 8;
	
	public final static int NINE = 9;
	
	public final static int TEN = 10;
	
	public final static int ELEVEN = 11;
	
	public final static int HUNDRED = 100;
	
	public final static String MALE = "M";
	
	public final static String FEMALE = "F";
	
	public final static String MALE_CN = "男";
	
	public final static String FEMALE_CN = "女";
	
	//图片后缀名
	public final static String[] imgExts = {".bmp",".jpg",".jpeg",".png",".gif",".svg"};
	
	//原始密码
	public final static String ORIPWD = "000000";
	
	public final static String VERIFIED = "Y";  //已认证
	
	public final static String NOTVERIFIED = "N";  //未认证
	
	//加密方式  盐 + 密码
	public final static String MPWD = "M";  //mis加密方式 
	
	//加密方式  密码 + 盐
	public final static String APWD = "A";	//account加密方式
	
	//加密方式 ((密码) + 盐)
	public final static String BPWD = "B";	//adreambox加密方式
	
	public final static Integer MESSAGE_TOKEN_ALIVE = 180000;    //手机短信token 3分钟
	
	public final static Integer EMIAL_TOKEN_ALIVE = 180000;		//邮箱验证码token 3分钟
	
	public final static String USER_PHOTO_EXT = "jpg";
	
	public final static Integer COMMON_DATA_LENGTH = 50;
	
	public final static Integer LONG_DATA_LENGTH = 200;
	
	public final static Integer INTRO_MAX_LENGTH = 800;
	
	public final static String PART_BEGIN_BASE64URL = "data:";
	
	public final static String JPG_JPEG_HEX = "ffd8";	//jpg,jpeg图片格式hex
	
	public final static String GIF_HEX = "4749";	//gif hex
	
	public final static String PNG_HEX = "8950";	//png hex
	
	public final static Integer MAX_VALID_DATE = 30000;
	
	public final static Long MAX_TAG_WEIGHT = 999999L;
	
	//梦想主任角色id
	public final static String DREAM_DIRECTOR_ROLE_ID = "20181529574197910105";

	//梦想中心校长角色id
	public final static String DREAM_SCHOOL_MASTER_ROLE_ID = "20181529574197910115";
	
	//梦想中心学校角色id
	public final static String DREAM_SCHOOL_ROLE_ID = "20181529574197910125";
	
	//已实名认证通过的角色
	public final static String REALNAME_ROLE_ID = "20181544082361903101";
	
	//梦想盒子后台管理权限
	public final static String ADREAM_BOX_ADMIN = "1463";
	
	//已实名认证通过的权限点
	public final static String REALNAME_RES_ID = "9036";
	
	//后台管理——实名认证管理权限
	public final static String REALNAME_MANAGER_RES_ID = "1006";
	
	//后台管理——身份认证管理权限
	public final static String VERIFY_MANAGER_RES_ID = "1008";
	
	//后台管理—— 实名查看管理权限
	public final static String REALNAME_SHOW_RES_ID = "1012";
	
	//默认压缩比例
	public final static float DEFAULT_COMPRESS_SCALE = 1f;
	
	//默认水印图片透明度
	public final static float DEFAULT_OPACITY = 1f;
	
	/**
	 * 身份认证中各种身份id
	 */
	//梦想教师角色id
	public final static String TEACHER_ROLE_ID = "20181524903016560101";
	
	//志愿者角色id
	public final static String VOL_ROLE_ID = "20181529574197808101";

	//教练计划角色id
	public final static String COACH_PLAN_ROLE_ID = "20181529574197910106";
	
	//企业角色id
	public final static String BUSINESS_ROLE_ID = "20181529574197910101";
	
	//政府角色id
	public final static String GOV_ROLE_ID = "20181529574197910102";
	
	//社会组织id
	public final static String ORG_ROLE_ID = "20181529574197910103";

	//专项基金id
	public final static String SPECIAL_FUND_ROLE_ID = "20181529574197910104";
	
	//公益团队id
	public final static String PUBLIC_WELFARE_TEAM_ROLE_ID = "20181529574197910107";
	
	//社区梦想中心id
	public final static String ADREAM_CENTER_ROLE_ID = "20181529574197910108";
	public final static String ADREAM_CENTER_C_ROLE_ID = "20181529574197910120";
	
	//学生id
	public final static String STUDENT_ROLE_ID = "20181529574197910109";
	
	//去远方 -教师id
	public final static String  GFA_TEACHER_ID = "20181529574197910110";
	//去远方 -学生id
	public final static String  GFA_STUDENT_ID = "20181529574197910111";
	//去远方 -出行志愿者id
	public final static String  GFA_VOL_A_ID = "20181529574197910112";
	//去远方 -评审志愿者id
	public final static String  GFA_VOL_B_ID = "20181529574197910113";
	//社会志愿者
	public final static String COACH_PLAN_A_ID = "20201572578634560011";
	//学生志愿者
	public final static String COACH_PLAN_B_ID  = "20201572578634560012";
	//领队
	public final static String COACH_PLAN_C_ID  = "20201572578634560013";
	//讲师
	public final static String COACH_PLAN_D_ID  = "20201572578634560014";
	//运动梦想课
	public final static String SPORTS_CLASS_ID  = "20201572578634560015";
	//校长训练营-校长ID
	public final static String  HTC_H_ID = "20201572578634560016";
	//卓越梦想校长
	public final static String EXCELLENCE_ADREAM_HEAD_MASTER_ENROLL_ROLE_ID = "20211629875738612112";
	/**
	 * 身份认证中各种身份排序
	 */
	//=================beigin=======================
	//=================个人/团体认证====================
	//梦想教师认证
	public final static Integer TEACHER_SORT = 1;
	
	//志愿者认证
	public final static Integer VOL_SORT = 2;
	
	//基金会员工认证
	public final static Integer ADREAM_SORT = 3;
	
	//教练计划认证
	public final static Integer COACH_PLAN_SORT = 4;
	
	//学生认证
	public final static Integer STUDENT_SORT = 5;
	
	//去远方 -教师
	public final static Integer  GFA_TEACHER_SORT = 6;
	//去远方 -学生
	public final static Integer  GFA_STUDENT_SORT = 7;
	//去远方 -出行志愿者
	public final static Integer  GFA_VOL_A_SORT = 8;
	//去远方 -评审志愿者
	public final static Integer  GFA_VOL_B_SORT = 9;
	
	//社区梦想中心认证
	//城市版社区认证
	public final static Integer ADREAM_CENTER_SORT = 10;
	//乡镇版社区认证
	public final static Integer ADREAM_CENTER_SORT_C = 20;
	
	//社会志愿者
	public final static Integer COACH_PLAN_A_SORT = 11;
	//学生志愿者
	public final static Integer COACH_PLAN_B_SORT  = 12;
	//领队
	public final static Integer COACH_PLAN_C_SORT  = 13;
	//讲师
	public final static Integer COACH_PLAN_D_SORT  = 14;
	//运动梦想课
	public final static Integer SPORTS_CLASS_ID_SORT  = 15;
	//校长训练营-校长
	public final static Integer  HTC_H_SORT = 16;
	//卓越梦想校长
	public final static Integer EXCELLENCE_ADREAM_HEAD_MASTER_ENROLL_SORT = 19;
	//=================官方认证 100以后=======================
	//企业认证
	public final static Integer BUSINESS_SORT = 101;
	
	//政府认证
	public final static Integer GOV_SORT = 102;
	
	//社会组织认证
	public final static Integer ORG_SORT = 103;
	
	//专项基金认证
	public final static Integer SPECIAL_FUND_SORT = 104;
	
	//公益团队认证
	public final static Integer PUBLIC_WELFARE_TEAM_SORT = 105;
	//=================end==========================
	
	//能够下载梦想课程的角色
	public final static String DOWNLOAD_COURSE_ROLE_ID = "20191551075712657101";
	
	/**
	 * 图片压缩相关参数
	 */
	//=================beigin=======================
	//25%输出质量
	public final static float ZERO_POINT_TWENTY_FIVE_OUTPUTQUALITY = 0.25f;
	
	//50%输出质量
	public final static float ZERO_POINT_FIVE_OUTPUTQUALITY = 0.5f;
	
	//75%输出质量
	public final static float ZERO_POINT_SEVENTY_FIVE_OUTPUTQUALITY = 0.75f;
	
	//100%输出质量
	public final static float ONE_POINT_ZERO_OUTPUTQUALITY = 1.0f;
	
	//默认压缩kb大小数
	public final static int DEFAULT_COMPRESS_KB_SIZE = 200;
	//=================beigin=======================
	
	//1kb 单位b
	public final static int ONE_KB = 1 * 1024;
	
	//jpg图片后缀名
	public final static String JPG_EXT = "jpg";
	
	//jpeg图片后缀名
	public final static String JPEG_EXT = "jpeg";
	
	public final static String SYSTEM = "system";
	
	public final static String SYSTEM_SCFIRE = "scfire";
	
	//前端数据 undefined
	public final static String UNDEFINED = "undefined";
	
	//发送短信验证码不需要发送图片验证码(后续需替换)
	public final static String NOT_NEED_CHECK_CODE = "noNeedCheckCode";
	
	//微信端,手机号 创建的用户的uname前缀
	public final static String PREFIX_WECHAT_PHONE_USER_UNAME = "手机用户";
	
	//最大登录出错次数,超过就放入登录异常名单
	public final static int MAX_WRONG_TIMES = 10;
	
	//account数据源名称
	public final static String ACCOUNT_DATA_SOURCE_NAME = "accountDataSource";
	
	//梦想盒子数据源名称
	public final static String DREAM_BOX_DATA_SOURCE_NAME = "dreamBoxDataSource";
	
	//oa数据源名称
	public final static String OA_DATA_SOURCE_NAME = "oaDataSource";
	
	//新版梦想盒子数据源名称
	public final static String ADREAM_BOX_2020_DATA_SOURCE_NAME = "adreambox2020DataSource";
	
	//五星梦想教师角色id
	// 一星梦想教师角色id
	public final static String ONE_STAR_ADREAM_ROLE_ID = "20181524903016560111";

	// 二星梦想教师角色id
	public final static String TWO_STAR_ADREAM_ROLE_ID = "20181524903016560112";

	// 三星梦想教师角色id
	public final static String THREE_STAR_ADREAM_ROLE_ID = "20181524903016560113";

	// 四星梦想教师角色id
	public final static String FOUR_STAR_ADREAM_ROLE_ID = "20181524903016560114";

	// 五星梦想教师角色id
	public final static String FIVE_STAR_ADREAM_ROLE_ID = "20181524903016560115";
	
	//account restful接口调用默认超时时间
	public final static long ACCOUNT_RESTFUL_TIMEOUT_DEFAULT = 10000L;
	
	//新版盒子相关常量参数begin
	//新版盒子'管理员'角色id
	public final static int DREAM_2020_USER_GROUP_FOUNDER_ROLE_ID = 1;

	//新版盒子'梦想中心'角色id
	public final static int DREAM_2020_USER_GROUP_DREAM_ROLE_ID = 3;
	
	//新版盒子'梦想教师'角色id
	public final static int DREAM_2020_USER_GROUP_TEACHER_ROLE_ID = 4;
	
	//新版盒子'梦想中心主任'角色id
	public final static int DREAM_2020_USER_GROUP_DREAM_ADMIN_ROLE_ID = 8;
	
	//新版盒子'实名'角色id
	public final static int DREAM_2020_USER_GROUP_REALNAME_ROLE_ID = 20;
	
	//新版盒子'梦想教师'或'梦想中心主任'认证名称  后续可能需要更改
	public final static String DREAM_2020_CERTIFICATION_NAME_TEACHER_OR_DREAM_ADMIN = "user";
	//end
	
	//excel2003后缀
	public final static String EXCEL_2003_EXT = ".xls";
		
	//excel2007后缀
	public final static String EXCEL_2007_EXT = ".xlsx";
	
	//积分操作类型  增加
	public final static String INTEGRAL_OPERATE_TYPE_INCREASE = "增加";
	
	//积分操作类型  减少
	public final static String INTEGRAL_OPERATE_TYPE_DECREASE = "减少";
	
	//神策数据相关配置
	//神策数据 匿名ID存放的Cookie key值
	public final static String SENSOR_DATA_COOKIE_KEY = "sensorsdata2015jssdkcross";
	
	//神策数据 '盒子_注册结果'事件 
	public final static String SENSOR_DATA_ADREAMBOX_REGISTERATION_RESULT = "Adreambox_RegisterationResult";
	
	//神策数据 '盒子_用户提交实名认证'事件 
	public final static String SENSOR_DATA_ADREAMBOX_IDCARD = "Adreambox_Idcard";
	
	//神策数据 '盒子_实名认证审核结果'事件 
	public final static String SENSOR_DATA_ADREAMBOX_IDCARD_RESULT = "Adreambox_IdcardResult";
	
	//神策数据 '盒子_用户身份认证'事件 
	public final static String SENSOR_DATA_ADREAMBOX_IDENTITY_AUDIT = "Adreambox_IdentityAudit";
	
	//神策数据 '盒子_身份认证审核结果'事件 
	public final static String SENSOR_DATA_ADREAMBOX_IDENTITY_RESULT = "Adreambox_IdentityResult";
	
	//排序规则
	//降序
	public final static String SORT_DESC = "DESC";

	//升序
	public final static String SORT_ASC = "ASC";
	
	//梦想中心学校角色id
	public final static String ADREAM_CENTER_SCHOOL_ROLE_ID = "1001";

	//运动梦想课学校角色id
	public final static String SPROT_ADREAM_COURSE_SCHOOL_ROLE_ID = "1002";
	
	// 梦想盒子星级角色
	public final static int ADREAM_BOX_2020_ONE_STAR_ADREAM_ROLE_ID = 23;
	
	public final static int ADREAM_BOX_2020_TWO_STAR_ADREAM_ROLE_ID = 24;
	
	public final static int ADREAM_BOX_2020_THREE_STAR_ADREAM_ROLE_ID = 25;
	
	public final static int ADREAM_BOX_2020_FOUR_STAR_ADREAM_ROLE_ID = 26;
	
	public final static int ADREAM_BOX_2020_FIVE_STAR_ADREAM_ROLE_ID = 27;
}